package com.book.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.book.system.domain.Book;
import com.book.system.domain.BookChapter;

import java.util.List;

/**
 * @author Bigboss
 * @create 2024-10-19 20:58
 */
public interface IBookService extends IService<Book> {


    /**
     * 更新书籍章节
     * @param chapter
     * @return
     */
    boolean addChapter(BookChapter chapter);

    /**
     * 获取书籍章节
     * @param bookId
     * @return
     */
    List<BookChapter> getAllChapters(String bookId);
}
